### Netlist/DEF/TECH LEF files ###
#set INPUT_PATH ${TOP_DIR}/input
set INPUT_PATH "/team/riscv/liangzecheng/BackEnd/innovus/output/"
set starrc_path "/team/riscv/liangzecheng/BackEnd/starrc/"
#set SUB_BLOCK_1_INPUT_PATH "/home2/users/release/mesh_1_conn_64/final_run4/innovus/"
#set SUB_BLOCK_1_starrc_path "/home2/users/release/mesh_1_conn_64/final_run4/starrc/"
#set SUB_BLOCK_2_INPUT_PATH "/home2/users/release/block/final_run4/innovus/"
#set SUB_BLOCK_2_starrc_path "/home2/users/release/block/final_run4/starrc/"

set NETLIST    ${INPUT_PATH}/${DESIGN}.v
set DEF        ${INPUT_PATH}/${DESIGN}.def
set TECH_LEF   ${INPUT_PATH}/${DESIGN}.tech.lef
set constrain  "/team/riscv/liangzecheng/BackEnd/innovus/input/${DESIGN}.sdc"
set saif ./${DESIGN}.saif

### Parasitic file for each corner ###
set parasitic_files(wc_cmax)	 "$starrc_path/spef/cmax_125c.spef" 
#set parasitic_files(lt_cmax)	 "$starrc_path/spef/cmax_m40c.spef" 
set parasitic_files(wc_cmin)	 "$starrc_path/spef/cmin_125c.spef" 
#set parasitic_files(lt_cmin)	 "$starrc_path/spef/cmin_m40c.spef" 
set parasitic_files(bc_cmax)	 "$starrc_path/spef/cmax_m40c.spef" 
set parasitic_files(bc_cmin)	 "$starrc_path/spef/cmin_m40c.spef"
#set parasitic_files(ml_cmin)	 "$starrc_path/spef/cmin_125c.spef"

#set parasitic_files(wc_rcmax)	 "$starrc_path/spef/rcmax_125c.spef" 
#set parasitic_files(lt_rcmax)	 "$starrc_path/spef/rcmax_m40c.spef" 
#set parasitic_files(wc_rcmin)	 "$starrc_path/spef/rcmin_125c.spef" 
#set parasitic_files(lt_rcmin)	 "$starrc_path/spef/rcmin_m40c.spef" 
#set parasitic_files(bc_rcmax)	 "$starrc_path/spef/rcmax_m40c.spef" 
#set parasitic_files(bc_rcmin)	 "$starrc_path/spef/rcmin_m40c.spef"
set parasitic_files(tc_25)	 "$starrc_path/spef/typ_25c.spef"

#### SUB_BLOCK_1
###set SUB_BLOCK_1_parasitic_files(wc_cmax)	 "$SUB_BLOCK_1_starrc_path/cmax_125c.spef" 
####set SUB_BLOCK_1_parasitic_files(lt_cmax)	 "$SUB_BLOCK_1_starrc_path/cmax_m40c.spef" 
###set SUB_BLOCK_1_parasitic_files(wc_cmin)	 "$SUB_BLOCK_1_starrc_path/cmin_125c.spef" 
####set SUB_BLOCK_1_parasitic_files(lt_cmin)	 "$SUB_BLOCK_1_starrc_path/cmin_m40c.spef" 
###set SUB_BLOCK_1_parasitic_files(bc_cmax)	 "$SUB_BLOCK_1_starrc_path/cmax_m40c.spef" 
###set SUB_BLOCK_1_parasitic_files(bc_cmin)	 "$SUB_BLOCK_1_starrc_path/cmin_m40c.spef"
####set SUB_BLOCK_1_parasitic_files(ml_cmin)	 "$SUB_BLOCK_1_starrc_path/cmin_125c.spef"
###
####set SUB_BLOCK_1_parasitic_files(wc_rcmax)	 "$SUB_BLOCK_1_starrc_path/rcmax_125c.spef" 
####set SUB_BLOCK_1_parasitic_files(lt_rcmax)	 "$SUB_BLOCK_1_starrc_path/rcmax_m40c.spef" 
####set SUB_BLOCK_1_parasitic_files(wc_rcmin)	 "$SUB_BLOCK_1_starrc_path/rcmin_125c.spef" 
####set SUB_BLOCK_1_parasitic_files(lt_rcmin)	 "$SUB_BLOCK_1_starrc_path/rcmin_m40c.spef" 
####set SUB_BLOCK_1_parasitic_files(bc_rcmax)	 "$SUB_BLOCK_1_starrc_path/rcmax_m40c.spef" 
####set SUB_BLOCK_1_parasitic_files(bc_rcmin)	 "$SUB_BLOCK_1_starrc_path/rcmin_m40c.spef"
###set SUB_BLOCK_1_parasitic_files(tc_25)	 "$SUB_BLOCK_1_starrc_path/typ_25c.spef"
###
#### SUB_BLOCK_2
###set SUB_BLOCK_2_parasitic_files(wc_cmax)	 "$SUB_BLOCK_2_starrc_path/cmax_125c.spef" 
####set SUB_BLOCK_2_parasitic_files(lt_cmax)	 "$SUB_BLOCK_2_starrc_path/cmax_m40c.spef" 
###set SUB_BLOCK_2_parasitic_files(wc_cmin)	 "$SUB_BLOCK_2_starrc_path/cmin_125c.spef" 
####set SUB_BLOCK_2parasitic_files(lt_cmin)	 "$SUB_BLOCK_2_starrc_path/cmin_m40c.spef" 
###set SUB_BLOCK_2_parasitic_files(bc_cmax)	 "$SUB_BLOCK_2_starrc_path/cmax_m40c.spef" 
###set SUB_BLOCK_2_parasitic_files(bc_cmin)	 "$SUB_BLOCK_2_starrc_path/cmin_m40c.spef"
####set SUB_BLOCK_2_parasitic_files(ml_cmin)	 "$SUB_BLOCK_2_starrc_path/cmin_125c.spef"
###
####set SUB_BLOCK_2_parasitic_files(wc_rcmax)	 "$SUB_BLOCK_2_starrc_path/rcmax_125c.spef" 
####set SUB_BLOCK_2_parasitic_files(lt_rcmax)	 "$SUB_BLOCK_2_starrc_path/rcmax_m40c.spef" 
####set SUB_BLOCK_2_parasitic_files(wc_rcmin)	 "$SUB_BLOCK_2_starrc_path/rcmin_125c.spef" 
####set SUB_BLOCK_2_parasitic_files(lt_rcmin)	 "$SUB_BLOCK_2_starrc_path/rcmin_m40c.spef" 
####set SUB_BLOCK_2_parasitic_files(bc_rcmax)	 "$SUB_BLOCK_2_starrc_path/rcmax_m40c.spef" 
####set SUB_BLOCK_2_parasitic_files(bc_rcmin)	 "$SUB_BLOCK_2_starrc_path/rcmin_m40c.spef"
###set SUB_BLOCK_2_parasitic_files(tc_25)	 "$SUB_BLOCK_2_starrc_path/typ_25c.spef"



### timing analysis variables definition ###
set sh_continue_on_error true
suppress_message UITE-130
suppress_message PARA-007
set svr_keep_unconnected_nets true
set_app_var report_default_significant_digits 4
set timing_report_unconstrained_paths true
set_app_var read_parasitics_load_locations true
set_app_var timing_enable_slew_variation true

set_app_var timing_remove_clock_reconvergence_pessimism true
set_app_var si_enable_analysis true
set_app_var si_xtalk_delay_analysis_mode all_paths
#set_operating_conditions -analysis_type on_chip_variation

set_host_options -max_cores 16



